package messages;


/**
 * ChatMessage
 *
 * Text message sent by one player to another (unicast chat)
 */
public class ChatMessage extends Message {

	

	public ChatMessage(String originLogin, String destinyLogin, String contents, int matchId) {
		this.originLogin = originLogin;
		this.destinyLogin = destinyLogin;
		this.contents = contents;
		this.matchId = matchId;
	}
	
	
	public String getOriginLogin() {
		return this.originLogin;
	}
	
	
	public void setOriginLogin(String originLogin) {
		this.originLogin = originLogin;
	}
	
	
	public String getDestinyLogin() {
		return this.destinyLogin;
	}

	
	public String getContents() {
		return this.contents;
	}

	
	public int getMatchId() {
		return this.matchId;
	}
	
	
	private String originLogin;		// The player who sent the message 
	private String destinyLogin;	// The player who will receive the message
	private String contents;		// Message contents

	private int matchId;


	private static final long serialVersionUID = 1L;
}
